package com.qf.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


/**
   @author KING
   @ClassName: com.qf.product.entity.AttrValue
   @Description: 该类的功能描述
   @date: 2021/11/10 21:58 
*/
    

/**
    * 存储产品参数信息的表
    */
@Data
@TableName(value = "product_attr_value")
public class AttrValue {
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 关联产品id
     */
    @TableField(value = "product_id")
    private Long productId;

    /**
     * 商品属性id
     */
    @TableField(value = "product_attr_id")
    private Long productAttrId;

    /**
     * 手动添加规格或参数的值，参数单值，规格有多个时以逗号隔开
     */
    @TableField(value = "`value`")
    private String value;

    public static final String COL_ID = "id";

    public static final String COL_PRODUCT_ID = "product_id";

    public static final String COL_PRODUCT_ATTR_ID = "product_attr_id";

    public static final String COL_VALUE = "value";
}